package com.example.dao;

import com.example.pojo.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.Collection;

@Mapper
public interface DepartmentMapper {

    //获取所有部门信息
    public Collection<Department> getDepartments();

    //通过id得到部门
    public Department getDepartmentById(Integer id);
}
